package com.xxh.dasongapp.common.param;

import com.xxh.dasongapp.common.validgroup.Insert;
import com.xxh.dasongapp.common.validgroup.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value="轮播图参数",description="轮播图参数")
public class CarouselPARAM implements Serializable {
    private static final long serialVersionUID = 1L;

    @NotBlank(message = "id不能为空", groups = Update.class)
    @ApiModelProperty(value = "轮播图id")
    private String id;

    @NotBlank(message = "地址不能为空", groups = Insert.class)
    @ApiModelProperty(value = "跳转地址")
    private String url;

    @NotBlank(message = "图片不能为空", groups = Insert.class)
    @ApiModelProperty(value = "网站图片")
    private String imgFile;
}
